/* This file was generated with JastAdd2 (http://jastadd.org) version R20121112 (r872) */
package parser;

import java.util.HashMap;
import java.util.Map;
/**
 * @production Exp : {@link ASTNode};
 * @ast node
 * @declaredat /h/d1/l/int13mka/workspace/CalcComputation/specification/MiniP.ast:9
 */
public abstract class Exp extends ASTNode<ASTNode> implements Cloneable {
  /**
   * @apilevel low-level
   */
  public void flushCache() {
    super.flushCache();
  }
  /**
   * @apilevel internal
   */
  public void flushCollectionCache() {
    super.flushCollectionCache();
  }
  /**
   * @apilevel internal
   */
  @SuppressWarnings({"unchecked", "cast"})
  public Exp clone() throws CloneNotSupportedException {
    Exp node = (Exp)super.clone();
    return node;
  }
  /**
   * @ast method 
   * @aspect Interpreter
   * @declaredat /h/d1/l/int13mka/workspace/CalcComputation/specification/Interpreter.jadd:31
   */
  abstract int value(Map<String, Integer> vars);
  /**
   * @ast method 
   * 
   */
  public Exp(int i) {
    super(i);
  }
  /**
   * @ast method 
   * 
   */
  public Exp(MiniP p, int i) {
    this(i);
    parser = p;
  }
  /**
   * @ast method 
   * 
   */
  public Exp() {
    this(0);


  }
  /**
   * @ast method 
   * 
   */
  public void dumpTree(String indent, java.io.PrintStream pStream) {
    pStream.println(indent + "Exp");
        String childIndent = indent + "  ";
    for(int i = 0; i < getNumChild(); i++)
      getChild(i).dumpTree(childIndent, pStream);
  }
  /**
   * @ast method 
   * 
   */
  public Object jjtAccept(MiniPVisitor visitor, Object data) {
    return visitor.visit(this, data);
  }
  /**
   * @ast method 
   * 
   */
  public void jjtAddChild(Node n, int i) {
    checkChild(n, i);
    super.jjtAddChild(n, i);
}
  /**
   * @ast method 
   * 
   */
  public void checkChild(Node n, int i) {
  }
  /**
   * @apilevel low-level
   * @ast method 
   * 
   */
  public int getNumChild() {
    return 0;
  }
}
